/**
 * common工具类——$mai
 * Author : Delicate
 * Date : 05/16/2017
 * Vision : 1.0
 */
(function (window) {
        var mai = {};
        mai.getParam = function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return (r[2]);
            return null;
        }
        mai.jump = function(obj){
            var href = $(obj).data("href");
            if(window.top !== window.self){
                window.location.href=href;
            }else{
                $(".g-article-iframe").attr("src",href);
            }
            $("li[data-href='"+href+"']",window.parent.document).addClass("m-item-active").siblings().removeClass("m-item-active");
        }
        window.$de = mai;
})(window);
